package com.fulu.game.bi.entity.po.auth;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 用户
 */
@Data
public class BiUser implements Serializable {
    private static final long serialVersionUID = 1L;

    //主键id，自增
    private Integer id;
    //别名（如中文名）
    private String name;
    //用户名
    private String username;
    //密码
    @JsonIgnore
    private String password;
    //密码盐
    @JsonIgnore
    private String salt;
    //状态(0失效,1启用)
    private Integer status;

    private String imId;

    private String imPwd;

    //生成时间
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;
    //修改时间
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;
    // 是否删除
    private Integer isDel;

    private Integer roleId;

    private String roleName;

}
